// pages/system/system.js
Component({

  /**
   * 页面的初始数据
   */
  data: {

  },

  methods:{
    switchToPerson() {
      const pages = getCurrentPages();
      const homePage = pages.find(page => page.route === 'pages/home/home');
      
      if (homePage) {
        homePage.setData({
          activePage: 'person'
        });
        wx.navigateBack();
      }
    }
  }
})